%h3.breadcrumb
  %span
    = link_to 'Products', products_path
    = " / " + "#{@product.name} [#{@product.identifier}] (#{@product.product_status.title})"

%h2 Product Description:

%p
  %strong Description:
  = @product.description

%br/
%p
  = link_to 'New Story', new_product_story_path(@product), :id => 'story_link_add'
  = link_to 'Manage Sprints', product_sprints_path(@product), :id => 'sprint_link_manage'  if current_user.user_status.name != "Developer"
  = link_to 'Edit Product', edit_product_path(@product), :id => 'product_link_edit'  if current_user.user_status.name != "Developer"
  = link_to 'Remove Product', product_path(@product), :method => :delete, :confirm => "Are you sure you want to remove #{@product.name}?", :id => 'product_link_remove'


#container_left

  %h2 Active Sprints
  - if @active_sprints.blank?
    %p There are no active sprints for this product.
  - else
    = render :partial => 'sprintstory', :object => @active_sprints

  %h2 Completed Sprints
  - if @completed_sprints.blank?
    %p There are no completed sprints for this product.
  - else
  = render :partial => 'sprintstory', :object => @completed_sprints


#container_right
  %h2 Backlog Stories

  = render :partial => 'storytable', :object => @story_backlog, :locals => { :sprint_id => nil, :sortable => @mode, :table_inline => 'display: table;'}
  

.clear


